// 封装所有请求操作
import axios from '../../index'
import qs from 'qs'


// 获取仓库列表接口
export const warehouseList = () => {
    return axios({
        url: '/purSelStock/queryStoreHouse',
        // method: 'GET',
        // params: datas
        method: 'POST',
        data: ''
    })
}

// 添加仓库接口
export const warehouseAdd = (datas) => {
    return axios({
        url: '/purSelStock/addStoreHouse',
        method: 'POST',
        data: datas
    })
}

// 修改仓库接口
export const warehouseEdit = (datas) => {
    return axios({
        url: '/purSelStock/updateStoreHouse',
        method: 'POST',
        data: datas
    })
}

// 删除仓库列表接口
export const warehouseDel = (datas) => {
    return axios({
        url: '/purSelStock/deleteStoreHouse',
        method: 'POST',
        data: qs.stringify(datas)
    })
}